package com.jlpay.open.jlpay.sdk.java.model.ledger.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.jlpay.open.jlpay.sdk.java.model.ledger.LedgerBaseRequest;
import lombok.*;

/**
 *
 * @author dengwenning
 * @since 2024/8/30
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class MerchFileUploadRequest extends LedgerBaseRequest {

    /**
     * 格式为："data:image/{图片类型};base64,"{文件base64字符串}，
     * 图片类型支持png、pdf、jpg、jpeg，
     * 示例值：...
     */
    private String fileBase64;

    @Override
    public String path() {
        return "/open/ledger/merch/file/upload";
    }

}
